package com.TeacherInfoServer.pojo.excelImport;

import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class TalentTitleExcel {
    @NotNull(message = "工号不能为null")
    @NotEmpty(message = "工号不能为空")
    @Size(min = 10, max = 10, message = "不是有效工号")
    @ExcelProperty(value = "工号")
    private String teacherId;
    @ExcelProperty(value = "姓名")
    private String teacherName;
    @NotNull(message = "人才称号名称不能为null")
    @NotEmpty(message = "人才称号名称不能为空")
    @ExcelProperty(value = "人才称号名称")
    private String titleName;
    @NotNull(message = "人才称号级别不能为null")
    @NotEmpty(message = "人才称号级别不能为空")
    @ExcelProperty(value = "人才称号级别")
    private String titleLevel;
    @NotNull(message = "获得时间不能为null")
    @NotEmpty(message = "获得时间不能为空")
    @Pattern(regexp = "^\\d{4}-\\d{1,2}-\\d{1,2}",message = "时间不合法")
    @ExcelProperty(value = "获得时间年月")
    private String obtainDate;
}
